package com.indeep.user.utils;

import cn.jsms.api.common.SMSClient;
import org.springframework.stereotype.Component;

@Component
public class IndeepSmsComponent {
    
    public static String MASTER_SECRET = "6e1a953c52b31f72940d0495";
    
    public static String APP_KEY = "ad8e41f5cca5f2e2019f0ec7";
    
    // 初始化发短信客户端
    private static SMSClient smsClient;
    
    public static SMSClient getSmsClient() {
        if (smsClient == null) {
            smsClient = new SMSClient(MASTER_SECRET, APP_KEY);
        }
        return smsClient;
    }
}
